



class Address{
  // static const String homeHost = 'http://222.92.131.2:1000';
  // static const String homeHost = 'http://192.168.0.32:1000';

  // static const String homeHost = 'http://192.168.31.150:9099';
  // static const String homeHost = 'http://bbs.dtcloud360.com';
  // static const String homeHost = 'http://49.234.222.178:8082';
  // static const String homeHost = 'http://192.168.31.202:9099';
  // static const String homeHost = 'http://www.amoserp.com';

  static const String ASSETS_IMG = 'images/';
  /// 正式服务
  static const String homeHost = 'http://49.234.222.178:8888';

  static const String host = '/api/v1';
  /// 登录
  static const String login = '$host/login';
  /// 一键登录
  static const String oauth = '$host/fast_login_mobile';
  /// send code
  static const String sendCode = '${host}/send_sms_mobile';
  /// app开屏页面
  static const String appOpens = '${host}/app.opens/read';
  /// 注册
  static const String signup = '${host}/signup';
  /// 获取用户基础信息
  static const String infoRead = '${host}/res.users/info/read';
  /// 获取个人档案
  static const String hrEmployeeRead = '${host}/hr.employee/read';

  /// 修改个人信息
  static const String infoWrite = '${host}/res.users/info/write';
  /// 忘记密码
  static const String forgetPassword = '${host}/forget_password';
  /// 创建团队
  static const String teamCreate = '${host}/crm.team/create';
  ///我的团队
  static const String mineTeams = '${host}/crm.team/mine/read';
  ///所有团队
  static const String allTeams = '${host}/crm.team/all/read';
  ///加入团队
  static const String joinTeam = '${host}/crm.team/follows/create';
  /// 未阅日报
  static const String reportCreate = '${host}/crm.report/create';
  /// app全部
  static const String appGrid = '${host}/app.grid/all/page/read';
  /// 桌面应用
  static const String appGridIndex = '${host}/app.grid/index/read';
  /// 移除关注的应用
  static const String appGridRemove = '${host}/app.grid/follows/unlink';
  /// 添加桌面应用
  static const String appGridFocus = '${host}/app.grid/follows/create';
  ///报告列表
  static const String reportList = '${host}/crm.report/page/read';
  ///报告详情
  static const String reportInfo = '${host}/crm.report/read';
  ///获取附件
  static const String attachment ='${host}/ir.attachment/read';
  ///获取附件
  static const String attachmentUnlink ='${host}/ir.attachment/unlink';
  /// 评论
  static const String messageAdd = '${host}/mail.message/create';
  /// 点赞
  static const String resPraiseCreate = '${host}/res.praise/create';
  /// 获取岗位列表
  static const String hrJobRead = '${host}/base/hr.job/read';

  /// 合同列表
  static const String hrContractPage = '${host}/hr.contract/page/read';
  /// 合同详情
  static const String hrContractRead = '${host}/hr.contract/read';
  /// 创建合同
  static const String hrContractWrite = '${host}/hr.contract/write';
  /// 请假列表
  static const String hrLeavePage = '${host}/hr.leave/page/read';
  /// 请假详情
  static const String hrLeaveRead = '${host}/hr.leave/read';
  /// 取消请假
  static const String hrLeaveCancelWrite = '${host}/hr.leave/cancel/write';
  /// 获取请假类型
  static const String hrLeaveType = '${host}/base/hr.leave.type/read';
  /// 创建请假
  static const String hrLeaveWrite = '${host}/hr.leave/write';

  ///日程列表
  static const String calendarList = '${host}/calendar.event/page';
  /// 日程列表详情
  static const String calendarRead = '${host}/calendar.event/read';
  ///项目列表
  static const String projectList = '${host}/project.project/page/read';
  ///任务列表
  static const String missionList = '${host}/project.task/page/read';
  /// 标记任务状态
  static const String projectTaskState = '${host}/project.task/state/write';
  /// 关闭打开项目
  static const String projectProjectState = '${host}/project.project/state/write';


  /// 未阅项目
  static const String projectCreate = '${host}/project.project/write';
  /// 新建日程
  static const String calendarCreate = '${host}/calendar.event/write';
  /// 新建任务
  static const String missionCreate = '${host}/project.task/write';
  /// 删除任务
  static const String missionUnlink = '${host}/project.task/unlink';
  /// 删除项目
  static const String projectUnlink = '${host}/project.project/unlink';
  /// 删除日程
  static const String calendarUnlink = '${host}/calendar.event/unlink';
  /// 获取日程提醒类型
  static const String calendarAlarm = '${host}/base/calendar.alarm/read';

  ///项目详情
  static const String projectInfo = '${host}/project.project/read/';
  ///日程详情
  static const String calendarInfo = '${host}/project.project/read/';
  ///任务详情
  static const String missionInfo = '${host}/project.task/read/';
  /// 获取员工
  static const String hrEmployee = '${host}/hr.employee/page/read';
  /// 获取部门树
  static const String hrDepartment = '${host}/hr.department/tree/read';
  /// 获取部门员工
  static const String hrEmployeePageRead = '${host}/hr.employee/page/read';
  /// 打卡
  static const String hrAttendance = '${host}/hr.attendance/check';
  /// 获取当前打卡
  static const String hrAttendanceCheckType = '${host}/hr.attendance/check_type';
  /// 考勤数据统计
  static const String hrAttendanceStaticRead= '${host}/hr.attendance/static/read';
  /// 搜索日期范围内有事件的日期
  static const String calendarEventDate= '${host}/calendar.event/date/read';
  /// 标记日程状态
  static const String calendarEventState= '${host}/calendar.event/state/write';
  /// 删除日程
  static const String calendarEventUnlink= '${host}/calendar.event/unlink';
  /// 获取当会议室
  static const String calendarRoom = '${host}/base/calendar.room/read';
  /// 获取会议列表
  static const String calendarPage = '${host}/calendar.event/page/read';
  /// 项目评论
  static const String commentPList = '$host/mail.message/comment/page/read/project.project';

  /// 新闻评论
  static const String commentList = '$host/mail.message/comment/page/read/crm.report';

  /// 工单列表
  static const String productionList = '${host}/production/list';
  /// 工单详情
  static const String productionDetail = '${host}/production/detail/';
  /// 物料详情
  static const String bomDetail = '${host}/bom/detail/';
  /// 消息列表
  static const String messageList = '${host}/message/list/mrp.production/4';
  /// 新闻列表
  static const String newsList = '${host}/news/list/0';
  /// 新闻详情
  static const String newsDetail = '${host}/news/detail';
  /// 新闻评论
  static const String newsComment = '${host}/news/comment';
  /// 新闻收藏
  static const String newsCollect = '${host}/news/collect';
  /// 新闻收藏列表
  static const String newsCollectList = '${host}/news/collect/list';
  /// 视频列表
  static const String videoList = '${host}/news/video/list/0';
  /// 点赞
  static const String newsPraise = '${host}/news/praise';
  /// 公共函数；
  static const String pubilc_getattr = '$host/public_getattr/0';

}

